package com.guli.order.vo;

import com.guli.common.valid.AddGroup;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/*
 * @Author 罗俊
 * @date 2020/11/19 - 3:51 下午
 *
 */
@Data
public class OrderSubmitVo {
    /**
     * 防重令牌
     */
    @NotEmpty(groups = AddGroup.class)
    private String preOrderToken;

    /**
     * 总价，用于校验
     * */
    @NotNull(groups = AddGroup.class)
    private BigDecimal totalAmount;

    /**
     * 收货地址id
     * */
    @NotNull(groups = AddGroup.class)
    private Long memberReceiveAddressId;

    /**
     * 支付类型
     * */
    @NotNull(groups = AddGroup.class)
    private Integer payType;

    // 订单备注等
}
